//
//  PlayerControlDelegate.h
//  VideoPlayer
//
//  Created by 白璐 on 16/9/23.
//  Copyright © 2016年 baidu. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol PlayerControlDelegate <NSObject>

- (void)play;
- (void)seek:(NSTimeInterval)position;
- (void)realtimeVariable:(NSTimeInterval*)playableDuration position:(NSTimeInterval*)position speed:(double*)speed;
- (void)changeBitrate:(NSInteger)index;
- (void)controlStop;
- (void)share;

@end

@protocol PlayerActions <NSObject>

- (void)updateTitle:(NSString*)title;
- (void)startLoadingAnimation;
- (void)stopLoadingAnimation;
- (void)popPlayer;
- (void)updatePlayerState:(NSInteger)state;
- (void)updateDuration:(NSTimeInterval)duration;
- (void)updateResolution:(CGSize)size;
- (void)updateBitrateList:(NSArray*)bitrates index:(NSInteger)currentIndex;
- (void)updatePosition:(NSTimeInterval)position;

@end
